//
// Created by JYL on 2024-01-13.
//

#ifndef INC_10_1_HAL_PWM_CAPTURE_2CH_BSP_I2C_H
#define INC_10_1_HAL_PWM_CAPTURE_2CH_BSP_I2C_H

#include "main.h"

void I2CStart(void);
void I2CStop(void);
unsigned char I2CWaitAck(void);
void I2CSendAck(void);
void I2CSendNotAck(void);
void I2CSendByte(unsigned char cSendByte);
unsigned char I2CReceiveByte(void);
void I2CInit(void);

void AT24C02_Write(uint8_t add,uint8_t dat);
uint8_t AT24C02_Read(uint8_t add);
void MCP4017_Write(uint8_t val);
uint8_t MCP4017_Read(void);

#endif //INC_10_1_HAL_PWM_CAPTURE_2CH_BSP_I2C_H
